From b87f42498ff097e1ae37686e296c05417258d3af Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Mon, 5 Jul 2004 16:20:00 +0000 Subject: [PATCH] bitkeeper revision 1.1041.5.6 (40e97fb09K8Oxvzk9KeNthtMZL24Tw) Don't call pending deferred if already called. --- tools/python/xen/xend/server/controller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/server/controller.py b/tools/python/xen/xend/server/controller.py index 49d6e26ea8..6804331ac7 100755 --- a/tools/python/xen/xend/server/controller.py +++ b/tools/python/xen/xend/server/controller.py @@ -180,7 +180,8 @@ class ControllerFactory(CtrlMsgRcvr): """ if self.dlist: d = self.dlist.pop(0) - d.callback(*args) + if not d.called: + d.callback(*args) def errDeferred(self, *args): """Signal an error to the top deferred object. @@ -189,7 +190,8 @@ class ControllerFactory(CtrlMsgRcvr): """ if self.dlist: d = self.dlist.pop(0) - d.errback(*args) + if not d.called: + d.errback(*args) class Controller(CtrlMsgRcvr): """Abstract class for a device controller attached to a domain. -- 2.30.2